Class CollectionUtilsTest

java.lang.Object
com.fsf.news.utils.CollectionUtilsTest

class CollectionUtilsTest extends Object
Tests for the CollectionUtils class.
  • Constructor Details

    • CollectionUtilsTest

      CollectionUtilsTest()
  • Method Details

    • testIsEmpty

      @ParameterizedTest @MethodSource void testIsEmpty(Collection<?> input)
      Tests that a collection is considered empty if it is null or contains no elements.
      Parameters:
      input - the input collection
    • testIsEmpty

      static Stream<Collection<?>> testIsEmpty()
      Provides test data for the testIsEmpty method.
      Returns:
      A stream of test data
    • testIsNotEmpty

      @ParameterizedTest @MethodSource void testIsNotEmpty(Collection<?> input)
      Tests that a collection is not considered empty if it is not null or contains elements.
      Parameters:
      input - the input collection
    • testIsNotEmpty

      static Stream<Collection<?>> testIsNotEmpty()
      Provides test data for the testIsNotEmpty method.
      Returns:
      A stream of test data